﻿using System;
using System.Diagnostics.Metrics;
using System.IO;
using System.Net;
using System.Net.Sockets;
using System.Reflection.PortableExecutable;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;

namespace SMTPClient
{
    public class Program
    {
        static void Main(string[] args)
        {
            SMTP client = new SMTP("", "");// 分别是发送方的完整邮箱和授权码
            client.SendMail("ailier22@163.com", "<p><strong>Hello, this is a test email.</strong></p>", "Test Email");// 分别是接收方的完整邮箱、邮件内容和邮件标题（html格式）
            // client.SendMail("15692492622@163.com", "Hello, this is a test email.", "Test Email");// 分别是接收方的完整邮箱、邮件内容和邮件标题（纯文本格式）
        }
    }
}
